import request from '@/utils/request'

// SKU列表接口
export const reqSkuList = (page, limit) => request({ url: `/trade/admin/product/list/${page}/${limit}`, method: 'get' })

// 上架商品
export const reqSale = (skuId) => request({ url: `/trade/admin/product/onSale/${skuId}`, method: 'get' })

// 下架商品
export const reqCancel = (skuId) => request({ url: `/trade/admin/product/cancelSale/${skuId}`, method: 'get' })

// 获取SKU详情接口
export const reqSkuById = (skuId) => request({ url: `/trade/admin/product/getSkuById/${skuId}`, method: 'get' })
